//
//  BSActivityDatalisTableViewCell.m
//  BS
//
//  Created by 王浩宇 on 15/8/21.
//  Copyright (c) 2015年 lanou. All rights reserved.
//

#import "BSActivityDatalisTableViewCell.h"
#import "UIImageView+WebCache.h"
#import "UILabel+LJLabel.h"
#import "Header.h"


@implementation BSActivityDatalisTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setModel:(BSActivityDatalistInfoModel *)model
{
    _model = model;
    [_infoImage sd_setImageWithURL:[NSURL URLWithString:model.image_detail]];
    _infoLabel.text = model.info;
    _totalLabel.text = [NSString stringWithFormat:@"共%@人参与",model.total_users];
    
    
    
}
+ (CGFloat)cellforHight:(BSActivityDatalistInfoModel *)model
{
    CGFloat height = [UILabel heightOfLabelByStr:model.info fontSize:15 width:SCREEN_WIDTH];
    return height + 140;
}

@end
